home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / genrsp11 / example.bat < prev    next >
Encoding:
DOS Batch File  |  1995-03-31  |  1.3 KB  |  29 lines

  1. @ECHO OFF
  2. REM ----------------------------------------------------------------------
  3. REM This will display the filelist to screen.  It should show GENRSP.EXE,
  4. REM GENRSP.C, COMMAND.COM, AUTOEXEC.BAT, CONFIG.SYS, among others, but
  5. REM notice they will all have an .OBJ extension.
  6. REM ----------------------------------------------------------------------
  7.  
  8. echo First test, find all .EXE and .C files in current directory, all
  9. echo .COM, .BAT, and .SYS files in root directory, extensions will be
  10. echo changed to .OBJ
  11. GENRSP "-+%%s & \n" *.exe;*.c;c:\*.com;c:\*.bat;c:\*.sys
  12. echo Second test... search for file DUMMY.FIL, beep if not found, and
  13. echo demonstrate usage of some escape sequences in format strings (BELL, HEX,
  14. echo NEWLINE, TAB)
  15. GENRSP "-+%%s & \n" DUMMY.FIL
  16. if errorlevel == 1 GENRSP "\n\t\x11BEEP! File not found! \x10\a" example.bat
  17.  
  18. REM ----------------------------------------------------------------------
  19. REM Output to file "OBJLIST.RSP":
  20. REM
  21. REM GENRSP "-+%%s & \n" *.exe;*.c;c:\*.com;c:\*.bat;c:\*.sys >>OBJLIST.RSP
  22. REM also valid: (all .cpp files in parent of parent of current directory
  23. REM of C: drive)
  24. REM GENRSP "-+%%s & \n" c:..\..\*.cpp >>OBJLIST.RSP
  25. REM ----------------------------------------------------------------------
  26. REM Usage with TLIB.EXE:
  27. REM
  28. REM TLIB mylib.lib @OBJLIST.RSP
  29.